package com.example;

/**
 * Simple Java HelloWorld program
 * Demonstrates basic Java syntax and structure
 */
public class HelloWorld {

    // Main method - Entry point of Java program
    public static void main(String[] args) {
        // Print output to console
        System.out.println("Hello, World!");
        System.out.println("Welcome to Java Programming!");

        // Call other methods
        greetUser("Learner");

        // Demonstrate variable declaration and usage
        int number = 42;
        String message = "Java is a strongly typed language";

        System.out.println("Number: " + number);
        System.out.println(message);
    }

    /**
     * Method to greet user
     * @param name User name
     */
    public static void greetUser(String name) {
        System.out.println("Hello, " + name + "!");
    }
}